class A
{
	int	x;
	A(int xx)
	{
	this.x=xx;
	}
	void display()
	{
	System.out.println("value X: "+x);
	}
}

class B extends A
{
	float y;
	B(int xx,float yy)
	{
	super(xx);
	this.y=yy;
	}
	void display()
	{
	super.display();
	System.out.println("value Y:"+y);
	}
}
	
class C extends B
{
	double z;
	C(int xx,float yy,double zz)
	{
	super(xx,yy);
	this.z=zz;
	}
	void display()
	{
	super.display();
	System.out.println("value Z:"+z);
	}
}


class Test
{
public static void main(String args[])
	{
	
	C cc=new C(100,100.5f,100.55d);
	cc.display();
	}
}
